import request from '@/utils/request'
import qs from "querystring"
export default{
    //已选分页查询
    getFindGoods(pageNum,pageSize,ids){
        return request({
            url:"/api-operate/v/goods/getFindGoodsPost",
            method:"get",
            params:{
                pageNum,
                pageSize,
                ids
            }
        })
    },

    //筛选分页查询
    getScreenVGoods(pageNum,pageSize,ids,sortId,brandId,title){
        return request({
            url:"/api-operate/v/goods/getScreenVGoods",
            method:"get",
            params:{
                pageNum,
                pageSize,
                ids,
                sortId,
                brandId,
                title
            }
        })
    },

    //修改商品
    getGoodsUpdate(ids,vGoods){
        var data=qs.stringify({ids,vGoods})
        return request({
            url:"/api-operate/v/goods/getGoodsUpdate",
            method:"post",
            data
        })
    }
}